package com.xdtech.base.service;

import java.util.List;

import com.xdtech.common.service.IBaseService;
import com.xdtech.base.model.District;
import com.xdtech.base.vo.DistrictItem;

/**
 * 
 * @author max.zheng
 * @create 2015-06-02 14:02:25
 * @since 1.0
 * @see
 */
public interface DistrictService extends IBaseService<District>{

	/**
	 * 保存更新信息
	 * @author max.zheng
	 * @create 2015-06-02 14:02:25
	 * @modified by
	 * @param item
	 * @return
	 */
	boolean saveOrUpdateDistrict(DistrictItem item);

	/**
	 * 加载记录信息
	 * @author max.zheng
	 * @create 2015-06-02 14:02:25
	 * @modified by
	 * @param newId
	 * @return
	 */
	DistrictItem loadDistrictItem(Long districtId);

	/**
	 * 根据id号删除记录信息
	 * @author max.zheng
	 * @create 2015-06-02 14:02:25
	 * @modified by
	 * @param id
	 * @return
	 */
	boolean deleteDistrictInfo(long id);

	/**
	 * 
	 * @author max.zheng
	 * @create 2015-06-02 14:02:25
	 * @modified by
	 * @param districtIds
	 */
	boolean deleteDistrictInfo(List<Long> districtIds);
	
	/**
	 * 加载vo列表条目
	 * @author max.zheng
	 * @create 2015-06-02 14:02:25
	 * @modified by
	 * @return
	 */
	List<DistrictItem> loadItems();

	/**
	 * 根据城市Id加载县区
	 * @author max.zheng
	 * @create 2015-6-2下午9:31:51
	 * @modified by
	 * @param cityId
	 * @return
	 */
	List<District> loadDistrictByCityId(String cityId);
}
